Integrand size = 40, antiderivative size = 313 \[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {2 B \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{b d \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}}-\frac {2 \left (A-\frac {a B}{b}\right ) \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticPi}\left (-\frac {b (d e-c f)}{(b c-a d) f},\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}} \]
[Out]
Time = 0.50 (sec) , antiderivative size = 313, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.175, Rules used = {1621, 175, 552, 551, 12, 122, 121} \[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {2 B \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{b d \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}}-\frac {2 \left (A-\frac {a B}{b}\right ) \sqrt {c f-d e} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \operatorname {EllipticPi}\left (-\frac {b (d e-c f)}{(b c-a d) f},\arcsin \left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {c f-d e}}\right ),\frac {(d e-c f) h}{f (d g-c h)}\right )}{\sqrt {f} \sqrt {e+f x} \sqrt {g+h x} (b c-a d)} \]
[In]
[Out]
Rule 12
Rule 121
Rule 122
Rule 175
Rule 551
Rule 552
Rule 1621
Rubi steps \begin{align*} \text {integral}& = \left (A-\frac {a B}{b}\right ) \int \frac {1}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx+\int \frac {B}{b \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx \\ & = \frac {B \int \frac {1}{\sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx}{b}-\left (2 \left (A-\frac {a B}{b}\right )\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {e-\frac {c f}{d}+\frac {f x^2}{d}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right ) \\ & = \frac {\left (B \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {g+h x}} \, dx}{b \sqrt {e+f x}}-\frac {\left (2 \left (A-\frac {a B}{b}\right ) \sqrt {\frac {d (e+f x)}{d e-c f}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {g-\frac {c h}{d}+\frac {h x^2}{d}}} \, dx,x,\sqrt {c+d x}\right )}{\sqrt {e+f x}} \\ & = \frac {\left (B \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \int \frac {1}{\sqrt {c+d x} \sqrt {\frac {d e}{d e-c f}+\frac {d f x}{d e-c f}} \sqrt {\frac {d g}{d g-c h}+\frac {d h x}{d g-c h}}} \, dx}{b \sqrt {e+f x} \sqrt {g+h x}}-\frac {\left (2 \left (A-\frac {a B}{b}\right ) \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}}\right ) \text {Subst}\left (\int \frac {1}{\left (b c-a d-b x^2\right ) \sqrt {1+\frac {f x^2}{d \left (e-\frac {c f}{d}\right )}} \sqrt {1+\frac {h x^2}{d \left (g-\frac {c h}{d}\right )}}} \, dx,x,\sqrt {c+d x}\right )}{\sqrt {e+f x} \sqrt {g+h x}} \\ & = \frac {2 B \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} F\left (\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{b d \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}}-\frac {2 \left (A-\frac {a B}{b}\right ) \sqrt {-d e+c f} \sqrt {\frac {d (e+f x)}{d e-c f}} \sqrt {\frac {d (g+h x)}{d g-c h}} \Pi \left (-\frac {b (d e-c f)}{(b c-a d) f};\sin ^{-1}\left (\frac {\sqrt {f} \sqrt {c+d x}}{\sqrt {-d e+c f}}\right )|\frac {(d e-c f) h}{f (d g-c h)}\right )}{(b c-a d) \sqrt {f} \sqrt {e+f x} \sqrt {g+h x}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 22.95 (sec) , antiderivative size = 245, normalized size of antiderivative = 0.78 \[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\frac {2 i \sqrt {e+f x} \sqrt {\frac {d (g+h x)}{h (c+d x)}} \left (b (-B c+A d) \operatorname {EllipticF}\left (i \text {arcsinh}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right ),\frac {d f g-c f h}{d e h-c f h}\right )+(-A b+a B) d \operatorname {EllipticPi}\left (-\frac {b c f-a d f}{b d e-b c f},i \text {arcsinh}\left (\frac {\sqrt {-c+\frac {d e}{f}}}{\sqrt {c+d x}}\right ),\frac {d f g-c f h}{d e h-c f h}\right )\right )}{b (-b c+a d) \sqrt {-c+\frac {d e}{f}} f \sqrt {\frac {d (e+f x)}{f (c+d x)}} \sqrt {g+h x}} \]
[In]
[Out]
Time = 2.96 (sec) , antiderivative size = 478, normalized size of antiderivative = 1.53
method | result | size |
elliptic | \(\frac {\sqrt {\left (d x +c \right ) \left (f x +e \right ) \left (h x +g \right )}\, \left (\frac {2 B \left (\frac {g}{h}-\frac {e}{f}\right ) \sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, F\left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{b \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}}+\frac {2 \left (A b -B a \right ) \left (\frac {g}{h}-\frac {e}{f}\right ) \sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}\, \sqrt {\frac {x +\frac {c}{d}}{-\frac {g}{h}+\frac {c}{d}}}\, \sqrt {\frac {x +\frac {e}{f}}{-\frac {g}{h}+\frac {e}{f}}}\, \Pi \left (\sqrt {\frac {x +\frac {g}{h}}{\frac {g}{h}-\frac {e}{f}}}, \frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {a}{b}}, \sqrt {\frac {-\frac {g}{h}+\frac {e}{f}}{-\frac {g}{h}+\frac {c}{d}}}\right )}{b^{2} \sqrt {d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g}\, \left (-\frac {g}{h}+\frac {a}{b}\right )}\right )}{\sqrt {d x +c}\, \sqrt {f x +e}\, \sqrt {h x +g}}\) | \(478\) |
default | \(-\frac {2 \sqrt {d x +c}\, \sqrt {f x +e}\, \sqrt {h x +g}\, \sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}\, \sqrt {\frac {\left (d x +c \right ) h}{c h -d g}}\, \sqrt {\frac {\left (f x +e \right ) h}{e h -f g}}\, \left (A \Pi \left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \frac {\left (e h -f g \right ) b}{f \left (a h -g b \right )}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) b e \,h^{2}-A \Pi \left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \frac {\left (e h -f g \right ) b}{f \left (a h -g b \right )}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) b f g h +B F\left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) a e \,h^{2}-B F\left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) a f g h -B F\left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) b e g h +B F\left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) b f \,g^{2}-B \Pi \left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \frac {\left (e h -f g \right ) b}{f \left (a h -g b \right )}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) a e \,h^{2}+B \Pi \left (\sqrt {-\frac {\left (h x +g \right ) f}{e h -f g}}, \frac {\left (e h -f g \right ) b}{f \left (a h -g b \right )}, \sqrt {\frac {\left (e h -f g \right ) d}{f \left (c h -d g \right )}}\right ) a f g h \right )}{f h b \left (a h -g b \right ) \left (d f h \,x^{3}+c f h \,x^{2}+d e h \,x^{2}+d f g \,x^{2}+c e h x +c f g x +d e g x +c e g \right )}\) | \(668\) |
[In]
[Out]
Timed out. \[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {A + B x}{\left (a + b x\right ) \sqrt {c + d x} \sqrt {e + f x} \sqrt {g + h x}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {B x + A}{{\left (b x + a\right )} \sqrt {d x + c} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
\[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int { \frac {B x + A}{{\left (b x + a\right )} \sqrt {d x + c} \sqrt {f x + e} \sqrt {h x + g}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B x}{(a+b x) \sqrt {c+d x} \sqrt {e+f x} \sqrt {g+h x}} \, dx=\int \frac {A+B\,x}{\sqrt {e+f\,x}\,\sqrt {g+h\,x}\,\left (a+b\,x\right )\,\sqrt {c+d\,x}} \,d x \]
[In]
[Out]